var e = {    
    openId: "NUll", 
};
function t(e) {
    var t = "";
    try {
        var o = wx.getStorageSync(e);
        o && (t = o);
    } catch (o) {
        t = "";
    }
    return t;
}
function o(e) {
    try {
        wx.removeStorageSync(e);
    } catch (t) {
        
    }
}

function r(e) {
    wx.removeStorage({
        key: e,
        success: function(e) {
            console.log(e);
        }
    });
}

module.exports = {
    storageKey: e,
    removeLoginStorage: function() {       
        r(e.openId);
    },
    removeLoginStorageSync: function() {      
        o(e.openId);
    },
    getStorageSync: t,
    setStorageSync: function(e, t) {
        try {
            wx.setStorageSync(e, t);
        } catch (o) {
         
        }
    },
    setStorage: function(e, t) {
        wx.setStorage({
            key: e,
            data: t
        });
    },
    removeStorageSync: o,
    removeStorage: r,
    isLogin: function() {
        var o = !1, cuid = wx.getStorageSync('uid'), suinfo =  wx.getStorageSync('userBase');
        console.log('yonghu');      
         
        return "" != cuid && "" != suinfo;
    }
};